package com.lbb.springboot.entity.vo;

import io.swagger.annotations.ApiModelProperty;

/**
 * @author likanghong
 */
public class BasePage {

    @ApiModelProperty(value = " 每页查多少条")
    private Integer size;

    private Integer page;

    public Integer getPage() {
        if (page==null||page==0){
            return 1;
        }
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    @ApiModelProperty(value = " 查那一页。当前页")
    private Integer current;

    @ApiModelProperty(value = "总条数")
    private Integer total;

    public Integer getSize() {
        if (size==null||size==0){
            return 10;
        }
        return size;
    }

    public void setSize(Integer size) {

        this.size = size;
    }

    public Integer getCurrent() {
        return current;
    }

    public void setCurrent(Integer current) {
        this.current = current;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }
}
